package com.ftg.learn.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;

/**
 * 切面类
 * @author kangjx
 * @createTime 2022/8/15
 */
@Component
@Aspect
@EnableAspectJAutoProxy
public class AopClass {

    /**
     * 前置
     * @after
     * @round
     */
    @Before("execution(String com.ftg.learn.aop.Person.info())")
    public void abc(){
        System.out.println("我现在要执行了");
    }

}
